import { LayoutComponent } from '../layout/layout.component';
import { HomeComponent } from './home/index/home';

export const routes = [
    {
        path: '',
        component: LayoutComponent,
        children: [
            { path: '', redirectTo: 'home', pathMatch: 'full' },
            { path: 'home', loadChildren: './home/home.module#HomeModule' },
            { path: 'enterprise', loadChildren: './enterprise/enterprise.module#EnterpriseModule' },
            { path: 'assetsMgmt', loadChildren: './assetsMgmt/assetsMgmt.module#AssetsMgmtModule' },
            { path: 'bugsMgmt', loadChildren: './bugsMgmt/bugsMgmt.module#BugsMgmtModule' },
            { path: 'violation', loadChildren: './violation/violation.module#ViolationModule' },
            { path: 'taskMgmt', loadChildren: './taskMgmt/taskMgmt.module#TaskMgmtModule' },
            { path: 'systemMgmt', loadChildren: './systemMgmt/systemMgmt.module#SystemManagementModule' },
        ]
    },{
        path: 'pages', 
        loadChildren: './pages/pages.module#PagesModule' 
    },{
        path: '**',
        redirectTo: ''
    }
];


